package com.words.dao;

import com.words.entity.SysUserRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.data.repository.query.Param;

import java.util.List;

@Mapper
public interface User_RoleDao {
    @Select("select * from sys_user_role where userid = #{user_id}")
    List<SysUserRole> listByUserId(@Param("user_id") int userid);
}

